home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / IDLOK.C < prev    next >
Text File  |  1992-11-21  |  2KB  |  51 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef idlok
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_idlok = "$Header: c:/curses/portable/RCS/idlok.c%v 2.0 1992/11/15 03:28:55 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   idlok()      - Enable use of Insert/Delete Line
  15.  
  16.   X/Open Description:
  17.        If enabeld (bf is TRUE), curses will use the insert/delete line
  18.        feature of terminals so equipped.  If disabled, curses will not
  19.        use this feature.  (The insert/delete character feature is always
  20.        used.)  This option should be enabled only if the application
  21.        needs insert/delete line; for example, for a screen editor.  It
  22.        is disabled by default because insert/delete line tends to be
  23.        visually annoying when used in applications where it isn't really
  24.        needed.  If insert/delete line cannot be used, curses will redraw
  25.        the changed portions of all lines.
  26.  
  27.   PDCurses Description:
  28.        This is provided for portability.  This may have some value for
  29.        the FLEXOS platform, but there is no code in PDCurses at this
  30.        time (910725) that takes advantage of this.
  31.  
  32.   X/Open Return Value:
  33.        The idlok() function returns OK on success and ERR on error.
  34.  
  35.   X/Open Errors:
  36.        No errors are defined for this function.
  37.  
  38.   Portability:
  39.        PDCurses        int idlok( WINDOW* win, bool bf );
  40.        X/Open Dec '88  int idlok( WINDOW* win, bool bf );
  41.        BSD Curses      
  42.        SYS V Curses    
  43.  
  44. **man-end**********************************************************************/
  45.  
  46. int    idlok( WINDOW *win, bool bf )
  47. {
  48.        win->_use_idl = bf;
  49.        return( OK );
  50. }
  51.